<?php /* Smarty version 2.6.13, created on 2008-09-26 13:47:54
         compiled from sp_edit.tpl */ ?>
<FORM method="post" action="/backend/staticpages/save/" id="sp_form" onsubmit="$('sp_content').value = FCKeditorAPI.GetInstance('sp_content').GetHTML();">
<div class="form">
    <H1>Статическая страница</H1>
    <div class="operation"><a href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
staticpages/" onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
staticpages/'); return false;" class="left">вернутся к списку</a><div style="clear: both;"></div></div>
<div>
    <table class="form">
    <tr><td style="width: 1px;">
    <label for="name">Имя</label></td><td> <input type="text" id="name" name="sp[name]" value="<?php echo $this->_tpl_vars['StaticPage']->name; ?>
" class="full" />
    </td></tr><tr><td>
    <label for="tech_url">URL</label> </td><td><input type="text" id="tech_url" name="sp[tech_url]" value="<?php echo $this->_tpl_vars['StaticPage']->tech_url; ?>
" />
    </td></tr><tr><td>
    <label for="title">Заголовок</label></td><td> <input type="text" id="title" name="sp[title]" value="<?php echo $this->_tpl_vars['StaticPage']->title; ?>
" />
    </td></tr><tr><td>
    <label for="content">Содержание</label></td><td style="padding: 2px 2px 10px 10px;"> <?php echo $this->_tpl_vars['editor']; ?>

        <!-- <textarea rows="3" id="content" name="sp[content]"><?php echo $this->_tpl_vars['StaticPage']->content; ?>
</textarea> -->
    </td></tr><tr><td colspan="2">
    <input type="checkbox" name="sp[is_system]" value="1" id="is_system" <?php if ($this->_tpl_vars['StaticPage']->is_system): ?>checked="true"<?php endif; ?>><label for="is_system" class="checkbox">системная страница (страница, которая не будет отображаться в общем списке)</label> <br />
    </td></tr>
    </table>
    <div class="buttonpanel">
        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
    </div>
    <input type="hidden" name="id" id="id" value="<?php echo $this->_tpl_vars['StaticPage']->getPk(); ?>
" />
    <input type="hidden" id="redirect" name="redirect" value="" />
</div>

<div style="clear: both;" />
</div>


</FORM>
<?php echo '
<script>
</script>
'; ?>